package com.jymj.entity.landmanage;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jymj.entity.YlEntity;
import com.jymj.entity.model.BplxEntity;

import java.util.Date;
import java.util.List;

/**
 * Created by lc on 2019/9/25.
 * 违法巡查 type=1  和  土地巡查 type=2
 */
public class IllegalEntity {
    private Integer id;//
    private String xzqmc;//		行政区名称
    private Integer ylId;//	yl---objectid  宅基地违法巡查必填
    private String situation;//违法描述
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date entime;//	录入时间
    private Integer status;//	违法情况 0未解决 10已解决
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date overtime;//		解决时间
    private String enpsn;//		录入人
    private String remark;//		备注
    private String hzmc;//户主名称
    private String bh;//编号
    private String geom;
    private String statusName;
    private Integer[] ids;//图片id集合
    private List<IllegalFileEntity> illegalFileEntityList;
    private YlEntity ylEntity;
    private String center;
    private String location;//位置（定位）---用于土地巡查
    private Integer type; //1 宅基地  2  土地巡查
    private BplxEntity bplxEntity;

    public BplxEntity getBplxEntity() {
        return bplxEntity;
    }

    public void setBplxEntity(BplxEntity bplxEntity) {
        this.bplxEntity = bplxEntity;
    }

    public String getCenter() {
        return center;
    }

    public void setCenter(String center) {
        this.center = center;
    }

    public YlEntity getYlEntity() {
        return ylEntity;
    }

    public void setYlEntity(YlEntity ylEntity) {
        this.ylEntity = ylEntity;
    }

    public List<IllegalFileEntity> getIllegalFileEntityList() {
        return illegalFileEntityList;
    }

    public void setIllegalFileEntityList(List<IllegalFileEntity> illegalFileEntityList) {
        this.illegalFileEntityList = illegalFileEntityList;
    }

    public Integer[] getIds() {
        return ids;
    }

    public void setIds(Integer[] ids) {
        this.ids = ids;
    }

    public String getStatusName() {
        if (status != null && status == 0){
            return "未解决";
        }else if (status != null && status == 10){
            return "已解决";
        }
        return null;
    }

    public String getGeom() {
        return geom;
    }

    public void setGeom(String geom) {
        this.geom = geom;
    }

    public String getHzmc() {
        return hzmc;
    }

    public void setHzmc(String hzmc) {
        this.hzmc = hzmc;
    }

    public String getBh() {
        return bh;
    }

    public void setBh(String bh) {
        this.bh = bh;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getXzqmc() {
        return xzqmc;
    }

    public void setXzqmc(String xzqmc) {
        this.xzqmc = xzqmc;
    }

    public Integer getYlId() {
        return ylId;
    }

    public void setYlId(Integer ylId) {
        this.ylId = ylId;
    }

    public String getSituation() {
        return situation;
    }

    public void setSituation(String situation) {
        this.situation = situation;
    }

    public Date getEntime() {
        return entime;
    }

    public void setEntime(Date entime) {
        this.entime = entime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getOvertime() {
        return overtime;
    }

    public void setOvertime(Date overtime) {
        this.overtime = overtime;
    }

    public String getEnpsn() {
        return enpsn;
    }

    public void setEnpsn(String enpsn) {
        this.enpsn = enpsn;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}
